package com.baboba.rummy.web.client.card;

import java.util.List;

import com.baboba.rummy.cards.Card;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HorizontalPanel;

public class CardListView extends Composite {
	private List<Card> cards;
	
	public CardListView(List<Card> cards){
		this.cards = cards;
		
		HorizontalPanel panel = new HorizontalPanel();
		for (Card card:cards)
			panel.add(new CardView(card));
		
		this.initWidget(panel);
	}

	public List<Card> getCards() {
		return cards;
	}
	
	
}
